package com.example.ruiji.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.ruiji.common.Result;
import com.example.ruiji.entity.Category;

import java.util.List;

public interface CategoryService {
    Result<Page<Category>> Page(Integer page, Integer pageSize);

    Result<String> add(Category category);

    Result<String> delete(Long id);

    Result<String> update(Category category);

    Result<List<Category>> getCategories(Category category);
}
